$(function () {
    //表格初始加载
    $('#grid_zjbcd_kc').datagrid({
        url: $.webPath() + "/kcgl/sskc/sskcList?gysId=" + $("#kc_gys_id").val(),
        fitColumns: true,
        singleSelect: true,
        pagination: true,
        fit: true,
        rownumbers: true,
        pageNumber: 1,
        striped: true,
        showFooter: true,
        columns: [
            [
                {field: 'khbm', title: '卡号', width: 90},
                {field: 'jtwz_code', title: '物资编码',align: 'center', width: 80},
                {field: 'jtwz_name', title: '物资名称', width: 55,align: 'center'},
                {field: 'jtwz_ggxh', title: '规格型号', width: 55,align: 'center'},
                {field: 'cd_z', title: '产地', width: 34,align: 'center'},
                {field: 'dw_z', title: '单位', width: 34,align: 'center'},
                {field: 'sl', title: '数量', formatter:function(value){
                    var sl = formatSl(value,",");
                    return sl;
                } ,width: 34,align: 'center'},
                {field: 'js', title: '件数',formatter:function(value){
                    var sl = formatSl(value,",");
                    return sl;
                } , width: 34,align: 'center'},
                {field: 'wsdj', title: '无税单价(元)',align: 'center', formatter:function(value){
                    var sl = formatJe(value,",");
                    return sl;
                } ,width: 60},
                {field: 'wsje', title: '无税金额(元)', align: 'center',formatter:function(value){
                    var sl = formatJe(value,",");
                    return sl;
                } ,width: 60},
                {field: 'ck_mc', title: '仓库', width: 50,align: 'center'},
                {field: "rkrq", title: "入库日期", width: 65,align: 'center'},
                {field: "cggs_jc", title: "采购公司", width: 50,align: 'center'}
            ]
        ]
    });

})